function [ha, hf] = plotTimeSeriesSignal(timeseriesSignal)
%plotTimeSeriesSignal
%   timeseriesSignal: A structure containing the time series signal to plot
%                     It must contain the following fields:
%                         .tList: A vector containing the timestamps of the signal
%                         .signals:  A cell array containing multiple signals. All signals should be a vector with the
%                                    same length of (.tList).
%                         .sigNames: A cell array containing the name of each signal.
%                         .title:    A description of this signal group.
%   Example:
%        blc.plotTimeSeriesSignal(blc.getTimeSeriesSignal('Omega_Hz'));
%
%
%

    hf = figure();
    ha = subplot(1,1,1); box on; hold on;
    Nsigs = numel(timeseriesSignal.signals);
    tList = timeseriesSignal.tList;
    for ii = 1:Nsigs
        sig = timeseriesSignal.signals{ii};
        sigName = timeseriesSignal.sigNames{ii};
        plot(tList, sig, 'DisplayName', sigName);
    end
    legend({});
    xlabel('Time / s');
    title(timeseriesSignal.title);
    set(ha,'xlim',minmax(reshape(tList,1,[])));
end

